﻿using System;
using System.Text;
using IAM.Interface.Model;
using System.Xml;
using ResponseLocalLibrary;
using IAM.Interface.IDAL;

namespace IAM.Interface.DAL.Response
{
    /// <summary>
    /// 代理管理
    /// </summary>
    public class DelegationMgnt : IDelegationMgnt
    {
        Business business = new Business();
        #region 方法
        /// <summary>
        /// 获取可代理模块列表
        /// </summary>
        /// <returns>可以进行代理设置的模块列表</returns>
        public Modules GetModuleList()
        {
            return business.GetModuleList();
        }
        /// <summary>
        /// 获取用户代理信息
        /// </summary>
        /// <param name="accountinfo">人员帐号信息</param>
        /// <returns>代理设置信息列表</returns>
        public AIDelegations GetDelegationInfo(AccountInfo accountinfo)
        {
            return business.GetDelegationInfo(accountinfo);
        }
        /// <summary>
        /// 设置用户代理信息
        /// </summary>
        /// <param name="aidelegations">用户代理信息</param>
        /// <returns>设置后的用户代理信息</returns>
        public AIDelegations SetDelegationInfo(AIDelegations aidelegations)
        {
            return business.SetDelegationInfo(aidelegations);
        }
        #endregion
    }
}
